package com.yida.system.controller;

import com.yida.common.core.web.controller.BaseController;
import com.yida.common.core.web.domain.AjaxResult;
import com.yida.system.service.ISysAreaService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 系统数据开放Controller
 * 
 * @author lqq
 * @date 2023-08-24
 */
@RestController
@RequestMapping("/public")
public class SysPublicController extends BaseController {
    @Resource
    private ISysAreaService sysAreaService;

    /**
     * 查询地区管理列表
     */
    @GetMapping("/areaSelect")
    public AjaxResult areaSelect() {
        return AjaxResult.success(sysAreaService.selectAreaInfoByAreaType(2));
    }
}
